import { IsNotEmpty, IsUrl } from 'class-validator'
import { ICompany } from '@/interface'
export class SaveRepoDto {
    @IsNotEmpty({ message: '服务名称不能为空！' })
    repoName: string
    @IsUrl(undefined, { message: '请检查仓库url是否正确！' })
    @IsNotEmpty({ message: '仓库url不能为空！' })
    repoPath: string
    @IsNotEmpty({ message: '仓库名不能为空！' })
    repoRepo: string
}
export class RepoidDto {
    @IsNotEmpty({ message: '仓库ID不能为空！' })
    repoid: string
}
export class SaveBranchDto {
    @IsNotEmpty({ message: '分支不能为空！' })
    branch: string
    @IsNotEmpty({ message: '环境不能为空！' })
    branchCur: string
    @IsNotEmpty({ message: '客户不能为空！' })
    companyid: string
}
export class BranchidDto {
    @IsNotEmpty({ message: '分支ID不能为空！' })
    branchid: string
}
export class VersionContextDto {
    @IsNotEmpty({ message: '版本ID不能为空！' })
    versionid: string
    @IsNotEmpty({ message: '更新内容不能为空！' })
    context: string
}
